<!--[pnajaxheader modname=crpTag filename=crptag.js noscriptaculous=true nobehaviour=true]-->
<!--[if pnModLangLoad('crpTag')]--><!-- lang load hack --><!--[/if]-->

<h4><!--[pnml name="_CRPTAG_TAGS" html=1]--></h4>
<div style="white-space:normal;">
<!--[if $can_edit]--><!--[pnimg modname=core src=xedit.gif set=icons/extrasmall id="switch_tagedit" altml=true titleml=true alt="_EDIT" title="_EDIT"]--><!--[/if]-->
<!--[foreach item=tag from=$tagArray name=tagged]-->
<span ><a style="white-space:nowrap;" href="<!--[pnmodurl modname="crpTag" func="display" id=$tag.id]-->" title="<!--[pnml name=_CRPTAG_TAGGED_AS html=1]--> <!--[$tag.name]-->"><!--[$tag.name]--></a></span><!--[if !$smarty.foreach.tagged.last]--> <strong>&middot;</strong> <!--[/if]-->
<!--[/foreach]-->
</div>

<!--[if $can_edit]-->
<div id="crptag_enabled_edit" style="display:none;">
<form class="pn-form" action="<!--[pnmodurl modname="crpTag" type="user" func="edittag"]-->" method="post" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="authid" value="<!--[pnsecgenauthkey module="crpTag"]-->" />
<input type="hidden" name="returnurl" value="<!--[$returnurl]-->" />
<input type="hidden" name="tagmodule" value="<!--[$tag.module]-->" />
<input type="hidden" name="id_module" value="<!--[$tag.id_module]-->" />

<!--[if !$tag_use_ajax]-->
<h3><!--[pnml name="_CRPTAG_TAGS" html=1]--></h3>
<div class="pn-formrow">
  <label for="taglist"><!--[pnml name="_CRPTAG_TAGS_INSERT" html=1]--></label>
	<input id="taglist" class="pn-form-text" type="text" name="taglist" maxlength="128" size="48" value="<!--[$tagString]-->" />
</div>
<!--[else]-->
<!--[pnajaxheader modname="crpTag" filename=crptag.js nobehaviour=true]-->
<!--[pnpageaddvar name="javascript" value="modules/crpTag/pnjavascript/textboxlist.js"]-->
<!--[pnpageaddvar name="javascript" value="modules/crpTag/pnjavascript/taglist.js"]-->
<!--[pnpageaddvar name="stylesheet" value="modules/crpTag/pnstyle/taglist.css"]-->

<h3><!--[pnml name="_CRPTAG_TAGS" html=1]--></h3>
<div id="crptag-container" class="pn-formrow">
	<div id="crptag-list" class="input-text">
      <label for="crptag-demo"><!--[pnml name="_CRPTAG_TAGS_INSERT" html=1]--></label>
      <input id="crptag-demo" type="text" name="taglist" value="" />
      <div id="crptag-auto">
        <div class="default"><!--[pnml name="_CRPTAG_TAGS_TIPYING_CHARS" html=1]--></div> 
        <ul id="tagfeed" class="feed">
        	<!--[foreach item=tag from=$tagNameArray name=tagged]-->
					<li value="<!--[$tag]-->"><!--[$tag]--></li>
					<!--[/foreach]-->
        </ul>
      </div>
	</div>
</div>

<script language="JavaScript">
	Event.observe(window, 'load', function(){crpTagFormInit();}, false);
</script>
<!--[/if]-->
		<div class="pn-formrow pn-formbuttons">
    	<!--[pnbutton src=button_ok.gif set=icons/small alt="_UPDATECONFIG" title="_UPDATECONFIG"]-->
    </div>
</form>

</div>

<script language="JavaScript">
	Event.observe(window, 'load', function(){crpTagEmbedInit();}, false);
</script>
<!--[/if]-->